<div class="funcarea">
	<label>参数名</label>
	<select id="searchCondition">
	<option value="deployId">发布ID</option>
	
			
			
					<option value="level">任务难度</option>	
			
			
			
			
					<option value="compaignId">战役ID</option>	
			
					<option value="postTaskId">后继任务</option>	
			
			
			
			
				</select>
	<label>参数值</label>
	<input type="text" id="searchValue"/>
	<a href="javascript:void(0)" onclick="searchtask()">查询</a>
	<a href="javascript:void(0)" onclick="document.location.reload()">刷新</a>
	<a href="javascript:void(0)" onclick="promptAdd()">增加</a>
	<a href="javascript:void(0)" onclick="promptExport()">导出</a>
	<a href="javascript:void(0)" onclick="extract()">转换任务数据</a>
	<a href="javascript:void(0)" onclick="publish()">发布任务</a>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
<div class="dataarea">
	<table>
		<thead>
			<tr>
			<th nowrap>发布ID</th>
			
				<th nowrap>名字</th>
			
				<th nowrap>描述</th>
			
				<th nowrap>任务难度</th>
			
				<th nowrap>任务大类</th>
			
				<th nowrap>任务类型</th>
			
				<th nowrap>完成条件</th>
			
				<th nowrap>战役ID</th>
			
				<th nowrap>后继任务</th>
			
				<th nowrap>任务前对话</th>
			
				<th nowrap>任务后对话</th>
			
				<th nowrap>任务消耗</th>
			
				<th nowrap>奖励</th>
							<th nowrap class="operator">----------操作---------</th>
			</tr>
		</thead>
		<tbody>
		{% for task in tasks %}
			<tr id="row_{{ task.id }}">
				<td><a href="javascript:void(0)" onclick="promptMenu({{ task.id }})">{{ task.deployId }}</a></td>
				
					
						<td>{{ task.name }}</td>
									
					
						<td>{{ task.desc }}</td>
									
					
						<td>{{ task.level }}</td>
									
											<td>
							<select disabled>
																
									<option value="1" {% ifequal 1 task.catalog %}selected="selected"{% endifequal %}>新手</option>
								
									<option value="2" {% ifequal 2 task.catalog %}selected="selected"{% endifequal %}>成长</option>
								
									<option value="3" {% ifequal 3 task.catalog %}selected="selected"{% endifequal %}>战役</option>
								
									<option value="4" {% ifequal 4 task.catalog %}selected="selected"{% endifequal %}>日常</option>
								
									<option value="5" {% ifequal 5 task.catalog %}selected="selected"{% endifequal %}>临时</option>
															</select>
						</td>
									
											<td>
							<select disabled>
																
									<option value="1" {% ifequal 1 task.type %}selected="selected"{% endifequal %}>功能</option>
								
									<option value="2" {% ifequal 2 task.type %}selected="selected"{% endifequal %}>打怪</option>
								
									<option value="3" {% ifequal 3 task.type %}selected="selected"{% endifequal %}>升级</option>
								
									<option value="4" {% ifequal 4 task.type %}selected="selected"{% endifequal %}>成就</option>
								
									<option value="5" {% ifequal 5 task.type %}selected="selected"{% endifequal %}>物品</option>
								
									<option value="6" {% ifequal 6 task.type %}selected="selected"{% endifequal %}>收集</option>
								
									<option value="7" {% ifequal 7 task.type %}selected="selected"{% endifequal %}>制作</option>
								
									<option value="8" {% ifequal 8 task.type %}selected="selected"{% endifequal %}>商城</option>
								
									<option value="9" {% ifequal 9 task.type %}selected="selected"{% endifequal %}>战斗</option>
								
									<option value="10" {% ifequal 10 task.type %}selected="selected"{% endifequal %}>邀请好友</option>
								
									<option value="11" {% ifequal 11 task.type %}selected="selected"{% endifequal %}>访问好友</option>
								
									<option value="12" {% ifequal 12 task.type %}selected="selected"{% endifequal %}>发送free gift</option>
								
									<option value="13" {% ifequal 13 task.type %}selected="selected"{% endifequal %}>收到free gift</option>
															</select>
						</td>
									
					
						<td>{{ task.dests }}</td>
									
					
						<td>{{ task.compaignId }}</td>
									
					
						<td>{{ task.postTaskId }}</td>
									
					
						<td>{{ task.startTalk }}</td>
									
					
						<td>{{ task.endTalk }}</td>
									
					
						<td>{{ task.deduct }}</td>
									
					
						<td>{{ task.reward }}</td>
													<td class="operator">
					<a href="javascript:edittask({{ task.id }})">编辑</a>
					<a href="javascript:removetask({{ task.id }})">删除</a>
					<a href="javascript:showtask({{ task.id }})">显示JSON</a>
				</td>
			</tr>
		{% endfor %}
		</tbody>
	</table>
</div>
{% if pageLength > 1 %}
<center>
	<br/>
	{% if pageIndex > 1 %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} - 1)">上一页</a>
	{% endif %}
	<a href="javascript:void(0)" disabled>第{{pageIndex}}/{{pageLength}}页</a>
	{% if pageIndex < pageLength %}
	<a href="javascript:void(0)" onclick="showMore({{pageIndex}} + 1)">下一页</a>
	{% endif %}
	<a href="javascript:void(0)" onclick="go2Page()">跳至</a>第
	<input type="text" size="2" id="pageValue" value="{{pageIndex}}"/>页
	<br/>
</center>
{% endif %}
